<template>
  <div>
    <xing :xing="xing" :index1="index1" @add="add"></xing>
  </div>
</template>

<script>
import xing from "@/components/xing";
export default {
  name: "",
  components: {
    xing,
  },
  data() {
    return {
      xing: [
        "el-icon-star-off",
        "el-icon-star-off",
        "el-icon-star-off",
        "el-icon-star-off",
        "el-icon-star-off",
      ],
      index1: 0,
    };
  },
  created() {},
  mounted() {},
  methods: {
    add(i) {
      this.index1 = i;
    },
  },
};
</script>
<style scoped lang="scss"></style>
